package com.fishleap.sqlSession;

import com.fishleap.pojo.Configuration;
import com.fishleap.pojo.MapperStatement;

import java.util.List;

/**
 * @author zlg
 * @create 2020-04-22 1:11
 */
public interface Executor {

    <E> List<E> query(Configuration configuration, MapperStatement mapperStatement,
                      Object... params) throws Exception;

    void insert(Configuration configuration, MapperStatement mapperStatement,
                Object[] params) throws Exception;

    void update(Configuration configuration, MapperStatement mapperStatement,
                Object[] params) throws Exception;

    void delete(Configuration configuration, MapperStatement mapperStatement,
                Object[] params) throws Exception;
}
